import axios from 'axios';

// 查询操作日志列表
export function listOperlog(query: any) {
    return axios({
        url: '/monitor/operlog/list',
        method: 'get',
        params: query
    })
}

// 删除操作日志
export function delOperlog(operId: number | string) {
    return axios({
        url: `/monitor/operlog/${operId}`,
        method: 'delete'
    })
}

// 清空操作日志
export function cleanOperlog() {
    return axios({
        url: '/monitor/operlog/clean',
        method: 'delete'
    })
}
